package jsu.blogger.service.impl;

import jsu.blogger.mapper.TagMapper;
import jsu.blogger.service.inter.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl implements TagService {
    @Autowired
    private TagMapper tagMapper;

    public List<String> searchTagNames(String keyword) {
        return tagMapper.findTagNamesByKeyword(keyword);
    }

    public  List<String> getAllTagNames(){
        return tagMapper.getAllTagNames();
    }
}
